home *** CD-ROM | disk | FTP | other *** search
Text File | 1990-11-22 | 7.0 KB | 187 lines | [TEXT/EDIT] |
- Edit II Version 1.0.2 November 22, 1990
- ~~~~~~~~~~~~~~~~~~~~~
- Written by Kenneth Seah
- Copyright © 1990 by Kenneth Seah
- (Portions © by Symantec - Written using Think C and Capps’ Editor Toolkit)
-
- This application is copyrighted by Kenneth Seah and is distributed as shareware.
- You are welcome to try out Edit II for a week or two and if you decide that its
- something you want to use, send a check drawn on a US Bank or a draft
- for US$15 made out to me at the address below, enclosing the little questionaire.
- Otherwise, give a copy of it to a friend, enclosing this file too and trash your
- copy (since it takes up valuable space on your disk).
-
- I'll consider that you have been registered once you have sent in your shareware
- fee. Upgrades will be posted to GEnie and UseNet. I can work out a 'site
- licence' fee if you need several copies installed at your place.
-
- For commercial distribution and correspondence, please contact:
-
- Kenneth Seah
- P O Box 8565
- Austin, TX 78713-8565
-
- GEnie: K.SEAH
-
- 0. Introduction
- ~~~~~~~~~~~~~~~
- Edit II is intended as a replacement for the Consulair Edit text editor but
- which alllows the use of the cursor keys on the Mac keyboard for navigation.
- If the extended keyboard is used, then the num lock LED will indicate whether
- the cursor pad or the numeric pad mode is on. The home, end, page up, page
- down keys will also work, as will the delete right key. One level of undo
- is supported. You can launch Edit II by double clicking old Edit files
- (since Edit II uses the same creator signature as Edit, that is, EDIT).
-
- Edit II requires System Software 4.1 and above and is Multifinder-friendly.
-
- This program is compiled using Think C 4.0.2 and uses the Capps’ Editor
- Toolkit.
-
- 1. Menu Items
- ~~~~~~~~~~~~~
- Edit II works just like Consulair's Edit. The File menu is standard and carries
- the usual options of New, Open, Save, Save As, Revert, Page Setup, Print, Transfer
- and Quit. The Edit Menu is also standard and comes with the Undo, Cut, Copy, Paste
- and Clear choices. You can also shift a selection one space to the left or right
- using the shift left/right menu items The Search menu looks a lot like that in
- Think Pascal or C. The Find dialog allows for searching in multiple files.
- Click on the multiple file checkbox and specify the file paths or click on the
- Use File button to specify the folder using the good old File Selection box).
- Quick movements to any part of the file are handled by the Go to options in the
- Search menu. The Font and Size selection is made off the Options menu as submenus.
- Options also allows setting of tabs, autoindent choice and the creator of the
- saved file (defaults to EDIT). The Windows menu allows quick selection of one
- of the four windows available to Edit II (sorry but this is the maximum number
- of editable windows so far).
-
- 2. Nice things
- ~~~~~~~~~~~~~~
- Cursor keys on the Plus and up now work (unlike in Edit). In addition, if you
- have an extended keyboard, then the page up/down, home/end and delete to right
- keys also work. Moreover, the keypad also toggles from the num lock mode (default)
- to cursor mode (like on the other machines) when you hit the num lock (clear) key
- on the keypad. A special CursorPad menu will appear showing the correspondence
- between the cursor pad and the keys on the number pad.
-
- The F1-F4 keys also function as undo, cut, copy and paste on the extended keyboard
- and the num lock light on the keyboard will show the state of the number pad.
-
- If autoindent mode is on, then hitting option-return will move the insertion
- point to the start of the next line and not do the autoindent for that line.
-
- 3. GREP searching and replacement
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- GREP searching can be now done using regular expressions like the Unix GREP tool.
- Pattern matching of regular expressions is carried out as follows:
-
- Patterns (regular expressions)
-
- 1. Any non-special character is a regular expression which matches itself.
- Characters [ ] \ and . are special characters and should be
- preceded by \ (see rule 4).
-
- 2. A regular expression can be concatenated with another regular expression.
-
- 3. The . (period) is a special character which matches any one character.
-
- 4. The \ followed by any character except ( ) < > or one of the digits 1-9
- is a regular expression which matches that character.
-
- 5. A string of characters s surrounded by brackets [ ] forms a regular
- expression that exactly matches any one of the characters in s. The
- regular expression [^ß] matches any character not in the string ß.
- If a string of 3 characters a-b occurs in the string, then this represents
- all the characters from a to b inclusive.
-
- 6. A regular expression R followed by * forms a regular expression which matches
- zero or more occurences of R.
-
- 7. A regular expression surrounded by \( and \) matches whatever the regular
- expression matches.
-
- 8. A \ followed by a digit n 1 to 9 is a regular expression which matches
- whatever the nth subexpression surrounded by \( \) matches.
-
- 9. A regular expression surrounded by \< and \> constrains the match to
- occur when the regular expression is immediately preceded and followed
- by characters which do not match [A-Za-z0-9_] and the first and last
- characters match [A-Za-z0-9_]. This allows us to look for "words".
-
- 10. A regular expression which starts with ^ anchors the search pattern to
- the start of a line. The ^ appearing anywhere else in the regular
- expression will match the ^.
-
- 11. A regular expression ending in $ will anchor the search pattern to the
- end of a line. The $ appearing anywhere else in the regular
- expression will match the $.
-
- Replacements
-
- 1. Each occurence of & in the replacement string will be substituted with
- whatever was last matched by the regular expression.
-
- 2. Each occurence of the form \n where n is a digit 1 to 9 will substitute
- whatever was matched by the nth subexpression enclosed in \( and \).
-
- 3. Each occurence of the form \p where p is not a digit 1 to 9 will
- substitute that character p.
-
- 4. Creator names
- ~~~~~~~~~~~~~~~~
- EDIT: Consulair Edit (and Edit II)
- MPS : Apple MPW
- KAHL: Think C
- PJMM: Think Pascal
- MACA: MacWrite
- MSWD: Microsoft Word
- nX^n: WriteNow
- ttxt: TeachText
- PEDT: DA Edit or PEdit
- WNGZ: WingZ
-
- 5. Bug Reports
- ~~~~~~~~~~~~~~
- If you find any bugs with this program, please write to me at the above address.
- You can also E-mail me on GEnie as K.SEAH.
-
- 6. Questionaire
- ~~~~~~~~~~~~~~~
- Copy, print this and fill in the blanks!
-
- NAME:
-
- ADDRESS:
-
-
-
- CITY: STATE: ZIP:
-
- Macintosh you have:
-
- Current version of your System Software:
-
- Comments about Edit II (add more space if desired!):
-
-
-
-
-
-
-
- >>> Don't forget the US$15 shareware fee <<<
-
- Version History
- ~~~~~~~~~~~~~~~
- 1.0.1 (10/09/90)
- ~~~~~
- First release.
-
- 1.0.2 (11/20/90)
- ~~~~~
- Now recognizes the extended keyboard del, home, end, pgup and pgdn keys
- while in the Cursor Pad mode. Fixed toggling of LEDs. Added Enter Selection
- menu item in Search menu to allow for copying of the selected text into the
- Search String box in the Find dialog (a la Think C). You can enter the selected
- text and then use Find Again to look for its next occurence.
-